import request from '@/utils/request'

export default{
    //获取分页数据
    getList(page,limit,courseQuery){
        return request({
            url: `/eduservice/edu-course/findAll/${page}/${limit}`,
            method: 'post',
            data:courseQuery
        })
    },


    //发布课程 信息回响确认
    getPublihCourseInfo(courseId){
        return request({
            url: `/eduservice/edu-course/getPublihCourseInfo/${courseId}`,
            method: 'get'
        })
    },
    //获取一条数据
    info(id){
        return request({
            url:`/eduservice/edu-course/info/${id}`,
            method:"get",
        })
    },
    //保存
    save(course){
        return request({
            url:`/eduservice/edu-course/save`,
            method:"post",
            data:course
        })
    },
    //更新
    update(course){
        return request({
            url:`/eduservice/edu-course/edit`,
            method:"put",
            data:course
        })
    },


    //删除
    delete(id){
        return request({
            url:`/eduservice/edu-course/${id}`,
            method:"delete",
        })
    },

}